package com.hdaccp.shuiguoD.dao;

import com.hdaccp.shuiguoD.entity.Kehu;
import org.apache.ibatis.annotations.Param;


import java.util.List;

public interface KehuDao {
    //显示
    public List<Kehu> queryAll();

    //查询
    public long getTotalCount(@Param("kname") String kname);
    public List<Kehu> query(@Param("kname") String kname, @Param("offset") int offset, @Param("limit") int limit);

    //删除
    public int delet(int kid);

    //增加
    public int add(Kehu kehuinfo);

    //修改
    public int update(Kehu kehuinfo);

    /**
     * 根据ID查询
     * @param kid
     * @return
     */
    public Kehu queryById(int kid);
}
